
#include "CreateSeparately.h"



int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, PSTR cmdLIne, int showCmd)
{
#if defined(DEBUG) | defined(_DEBUG)
	_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
#endif

	App theApp(hInstance);
	
	theApp.initApp();

	return theApp.run();
}


void App::initApp()
{
	D3DApp::initApp();
}

void App::drawScene()
{
	D3DApp::drawScene();

	RECT place = {5, 5, 0, 0};
	mFont->DrawText(0, mFrameStats.c_str(), - 1, &place, DT_NOCLIP, BLACK);

	mSwapChain->Present(0, 0);
}
